home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global a, b, c
- set a to field "A"
- set b to field "B"
- set c to field "C"
- if field "A" = EMPTY then
- set a to 0
- end if
- if field "B" = EMPTY then
- set b to 0
- end if
- if field "C" = EMPTY then
- set c to 0
- end if
- if (a > 200) or (a < -200) or (b > 200) or (b < -200) or (c > 300) then
- go("Error")
- return
- end if
- if (abs(a) > 200) or (abs(b) > 200) or (abs(c) > 300) then
- go("Error")
- return
- else
- if (a <> 0) and (b <> 0) and (c <> 0) then
- go("Error")
- return
- else
- if (c < 0) or ((a = 0) and (b = 0)) or ((a = 0) and (c = 0)) or ((b = 0) and (c = 0)) then
- put 1
- go("Error")
- else
- if field "C" = EMPTY then
- go("SC")
- else
- if (field "B" = EMPTY) and (abs(field "A") < field "C") then
- go("SB")
- else
- if (field "A" = EMPTY) and (abs(field "B") < field "C") then
- go("SA")
- else
- go("Error")
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on mouseDown
- button()
- end
-